import FormPanel, { Props as FormPanelProps } from "../../elastic/FormPanel";
import styles from './index.module.sass';

interface Props extends FormPanelProps {
    /**列表标题名称 */
    title?: string
}

const FormInterface: React.FC<Props> = props => {
    console.debug('FormInterface', props);

    return (
        <article className={styles.wrapper}>

            {props.title &&
                <header className={styles.header}>
                    <div className={styles.title}>{props.title}</div>
                </header>
            }

            <section className={styles.content}>
                <FormPanel {...props} />
            </section>

        </article>
    )
}

export default FormInterface;